package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Readrecord implements Serializable {
    private String rdno;

    private String cno;

    private String orrno;

    private String rddate;

    private String rddescribe;

    private Integer rdstate;

    private static final long serialVersionUID = 1L;

    public String getRdno() {
        return rdno;
    }

    public void setRdno(String rdno) {
        this.rdno = rdno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getOrrno() {
        return orrno;
    }

    public void setOrrno(String orrno) {
        this.orrno = orrno;
    }

    public String getRddate() {
        return rddate;
    }

    public void setRddate(String rddate) {
        this.rddate = rddate;
    }

    public String getRddescribe() {
        return rddescribe;
    }

    public void setRddescribe(String rddescribe) {
        this.rddescribe = rddescribe;
    }

    public Integer getRdstate() {
        return rdstate;
    }

    public void setRdstate(Integer rdstate) {
        this.rdstate = rdstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Readrecord other = (Readrecord) that;
        return (this.getRdno() == null ? other.getRdno() == null : this.getRdno().equals(other.getRdno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getOrrno() == null ? other.getOrrno() == null : this.getOrrno().equals(other.getOrrno()))
            && (this.getRddate() == null ? other.getRddate() == null : this.getRddate().equals(other.getRddate()))
            && (this.getRddescribe() == null ? other.getRddescribe() == null : this.getRddescribe().equals(other.getRddescribe()))
            && (this.getRdstate() == null ? other.getRdstate() == null : this.getRdstate().equals(other.getRdstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRdno() == null) ? 0 : getRdno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getOrrno() == null) ? 0 : getOrrno().hashCode());
        result = prime * result + ((getRddate() == null) ? 0 : getRddate().hashCode());
        result = prime * result + ((getRddescribe() == null) ? 0 : getRddescribe().hashCode());
        result = prime * result + ((getRdstate() == null) ? 0 : getRdstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", rdno=").append(rdno);
        sb.append(", cno=").append(cno);
        sb.append(", orrno=").append(orrno);
        sb.append(", rddate=").append(rddate);
        sb.append(", rddescribe=").append(rddescribe);
        sb.append(", rdstate=").append(rdstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}